<%@ Import Namespace="Curriculum.Modelo.Clases" %>
<%@ Register TagPrefix="cc1" Namespace="Pluspetrol.Core.UIControls.WebControls" Assembly="Pluspetrol.Core.UIControls" %>
<%@ Control Language="c#" AutoEventWireup="false" Codebehind="ListadoConcursosInscripcion.ascx.cs" Inherits="ConcursoCV.UI.WebUserControls.Inscripcion.ListadoConcursosInscripcion" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<table cellSpacing="-1" cellPadding="-1" width="100%">
	<tr>
		<td class="titulo_1">
			Inscripciones</td>
	</tr>
	<tr>
		<td>
			<table width="100%" cellpadding="0" cellspacing="0">
				<tr>
					<td colspan="7">&nbsp;</td>
				</tr>
				<tr>
					<td width="15%">&nbsp;</td>
					<td colspan="5"><asp:ValidationSummary ID="valSum" Runat="server"></asp:ValidationSummary></td>
					<td width="15%">&nbsp;</td>
				</tr>
				<tr>
					<td width="15%">&nbsp;</td>
					<td width="10%" class="label">Fecha&nbsp;:</td>
					<td width="24%">
						<cc1:cdatepicker id="dtpFecha" CssClass="controles" runat="server" Width="50%"></cc1:cdatepicker>&nbsp;<asp:regularexpressionvalidator id="revActDate" runat="server" CssClass="asteriskError" ErrorMessage="Ingrese una fecha valida."
							ControlToValidate="dtpFecha" ValidationExpression="^((31(?!/(02|04|06|09|11)))|((30|29)(?!/02))|(29(?=/02/(((1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00)))))|(0?[1-9])|1\d|2[0-8])/(0[1-9]|1[0-2])/((1[6-9]|[2-9]\d)\d{2})$">*</asp:regularexpressionvalidator></td>
					<td width="2%">&nbsp;</td>
					<td width="10%" class="label">Nombre :</td>
					<td width="24%">
						<asp:TextBox id="txtNombre" runat="server" Width="100%" CssClass="controles"></asp:TextBox></td>
					<td width="15%">&nbsp;</td>
				</tr>
				<tr>
					<td colspan="7" class="espacio">&nbsp;</td>
				</tr>
				<tr>
					<td>&nbsp;</td>
					<td class="label">Departamento&nbsp;:</td>
					<td><asp:DropDownList id="ddlDepartamento" runat="server" Width="65%"></asp:DropDownList></td>
					<td>&nbsp;</td>
					<td class="label">Area:</td>
					<td>
						<asp:DropDownList id="ddlArea" runat="server" Width="100%"></asp:DropDownList></td>
					<td>&nbsp;</td>
				</tr>
				<tr>
					<td colspan="7">&nbsp;</td>
				</tr>
				<tr>
					<td>&nbsp;</td>
					<td colspan="5" align="right"><asp:Button ID="btnBuscar" Text="Buscar" Runat="server" CssClass="boton"></asp:Button>&nbsp;&nbsp;<asp:Button ID="btnLimpiar" Text="Limpiar" Runat="server" CssClass="boton"></asp:Button></td>
					<td>&nbsp;</td>
				</tr>
				<tr>
					<td colspan="7">&nbsp;</td>
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td class="espacio">&nbsp;</td>
	</tr>
	<tr>
		<td class="separador">&nbsp;</td>
	</tr>
	<tr>
		<td class="titulo_2">Listado de Inscripciones</td>
	</tr>
	<tr>
		<td><asp:datagrid id="dtgConcursos" Width="100%" AutoGenerateColumns="False" runat="server">
				<AlternatingItemStyle CssClass="AlternatingItemStyle"></AlternatingItemStyle>
				<ItemStyle CssClass="ItemStyle"></ItemStyle>
				<HeaderStyle CssClass="HeaderGrid"></HeaderStyle>
				<Columns>
					<asp:BoundColumn Visible="False" DataField="Id" HeaderText="Id"></asp:BoundColumn>
					<asp:TemplateColumn HeaderText="Fecha" ItemStyle-Width="7%" SortExpression="Fecha" HeaderStyle-HorizontalAlign="Center">
						<ItemTemplate>
							<%# ((DateTime)DataBinder.Eval(Container, "DataItem.Fecha")).ToString("dd/MM/yyyy") %>
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:BoundColumn DataField="Nombre" HeaderText="Nombre"></asp:BoundColumn>
					<asp:TemplateColumn HeaderText="Departamento" ItemStyle-Width="7%" SortExpression="Departamento" HeaderStyle-HorizontalAlign="Center">
						<ItemTemplate>
							<%# ((Lookup)DataBinder.Eval(Container, "DataItem.Departamento")).Descripcion.ToString() %>
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:TemplateColumn HeaderText="Area" ItemStyle-Width="7%" SortExpression="Area" HeaderStyle-HorizontalAlign="Center">
						<ItemTemplate>
							<%# ((Lookup)DataBinder.Eval(Container, "DataItem.Area")).Descripcion.ToString() %>
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:TemplateColumn HeaderText="Ver">
						<HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
						<ItemStyle HorizontalAlign="Center" Width="10%"></ItemStyle>
						<ItemTemplate>
							<asp:ImageButton ID="btnView" CommandName="Ver" Runat="server" ImageUrl="../../img/icons/VIEWITEM.GIF"></asp:ImageButton>
						</ItemTemplate>
					</asp:TemplateColumn>
				</Columns>
			</asp:datagrid></td>
	</tr>
	<tr>
		<td class="bordeGrillaDeAbajo" align="right">
			<table cellSpacing="0" cellPadding="0" width="100%">
				<tr>
					<td align="left">&nbsp; # Cantidad de registros:
						<asp:label id="lblCount" runat="server"></asp:label></td>
					<td align="right">&nbsp;</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
